import { createRouter, createWebHashHistory } from "vue-router";
import HomeView from "@/views/HomeView.vue";
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "home",
      component: HomeView
    },
    {
      path: "/modify",
      name: "modify",
      component: () => import("@/views/ModifyView.vue")
    },
    {
      path: "/cart",
      name: "cart",
      component: () => import("@/views/CartView.vue")
    },
    {
      path: "/my",
      name: "my",
      component: () => import("@/views/MyView.vue")
    },
    {
      path: "/search",
      name: "search",
      component: () => import("@/views/SearchView.vue")
    },
    {
      path: "/login",
      name: "login",
      component: () => import("@/views/LoginView.vue")
    }
  ]
});

export default router;
